const express = require('express')
const app = express()
const router = require('./router')
const bodyParser = require('body-parser')

// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }))

// parse application/json
app.use(bodyParser.json())

app.use('/', router)

app.listen(3000, () => {
  console.log('localhost:3000');
})
